
<!-- src/App.vue -->
<template>
  <div id="app">
    <!-- 路由视图 -->
    <router-view />


    <!-- 底部导航栏 - 除了登录页和重置密码页都显示 -->
    <Footer v-if="showFooter" />
  </div>
</template>

<script setup>import { computed } from 'vue'
import { useRoute } from 'vue-router'
import Footer from './pages/footer.vue'

const route = useRoute()

// 控制是否显示底部导航栏
const showFooter = computed(() => {
  // 定义不需要显示底部导航栏的页面路径
  const hideFooterRoutes = ['/login', '/resetPassword', '/registerPay','/enroll','/patientManagement']
  return !hideFooterRoutes.includes(route.path)
})
</script>

<style>/* 为使用底部导航栏的页面添加底部边距 */
</style>